package com.example.service;

import com.example.domain.Candidate;
import com.example.domain.ExcelData;
import com.example.domain.Training;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.sql.SQLException;
import java.util.List;

/**
 * @author luo
 */
public interface CandidateService {
    /**
     * 应聘者
     * @return
     */
    public List<Candidate> selectCandidate();

    /**
     * 模糊查询
     * @param candidate
     * @return
     */
    public List<Candidate> selectCandidateByName(Candidate candidate);

    /**
     * 查询id应聘者
     * @param id
     * @return
     */
    public Candidate selectCandidateById(Integer id);

    /**
     * 添加应聘者信息
     * @param candidate
     * @return
     */
    public int addCandidate(Candidate candidate);

    /**
     * 更新应聘者信息
     *
     * @param candidate
     * @return
     */
    public int updateCandidate(Candidate candidate);
    /**
     * 根据id删除
     * @param id
     * @return
     */
    public int deleteCandidate(Integer id);
    /**
     * 分页查询
     * @param page
     * @param size
     * @return
     */
    public PageInfo<Candidate> findPage(int page, int size);
    /**
     * 打印
     * @return
     */
    public ExcelData getOutputExcelProjectData();
}
